snapshot: Remove dead code
authorBenjamin Otte <otte@redhat.com>
Wed, 20 Feb 2019 23:12:42 +0000 (00:12 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 18:47:28 +0000 (19:47 +0100)
Seems to be leftovers from way too long ago.

gtk/gtksnapshot.c

index 8a85755dd5fa95d8e6ee64d6ea87bdabbb22b678..eccf83f99fcc6e3fede26bac3d8976a5be8854ac 100644 (file)
@@ -542,16 +542,6 @@ gtk_snapshot_push_color_matrix (GtkSnapshot             *snapshot,
   graphene_vec4_init_from_vec4 (&state->data.color_matrix.offset, color_offset);
 }
 
-static void
-rectangle_init_from_graphene (cairo_rectangle_int_t *cairo,
-                              const graphene_rect_t *graphene)
-{
-  cairo->x = floorf (graphene->origin.x);
-  cairo->y = floorf (graphene->origin.y);
-  cairo->width = ceilf (graphene->origin.x + graphene->size.width) - cairo->x;
-  cairo->height = ceilf (graphene->origin.y + graphene->size.height) - cairo->y;
-}
-
 static GskRenderNode *
 gtk_snapshot_collect_repeat (GtkSnapshot      *snapshot,
                              GtkSnapshotState *state,
@@ -632,12 +622,9 @@ gtk_snapshot_push_clip (GtkSnapshot           *snapshot,
   const GtkSnapshotState *current_state = gtk_snapshot_get_current_state (snapshot);
   GtkSnapshotState *state;
   graphene_rect_t real_bounds;
-  cairo_rectangle_int_t rect;
 
   graphene_rect_offset_r (bounds, current_state->translate_x, current_state->translate_y, &real_bounds);
 
-  rectangle_init_from_graphene (&rect, &real_bounds);
-
   state = gtk_snapshot_push_state (snapshot,
                                    current_state->translate_x,
                                    current_state->translate_y,